new Vue({
    el:"#vue-app",
    data:{
        name:"MR.xu",
        website:"http://www.baidu.com",
        websiteTag:"<a  href='http://www.baidu.com'>Thepage</a>",
        age:29,
        x:0,
        y:0
    },
    methods:{
        greet:function (time) {
            return  "Good "+time ;
        },
        add:function () {
            this.age++
        },
        addinc:function (inc) {
            this.age += inc
        },
        subtract:function(){
            this.age--
        },
        updateXY:function(event){
            console.assert(event)
            this.x=event.offsetX;
            this.y=event.offsetY;
        },
        stopmoving:function (event) {
            event.stopPropagation();
        },
        alert:function () {
            alert("hellow word")
        }
    }
});
